<template>
  <div>
    <p style="color: #409eff; cursor: pointer" @click="goodsNoToggle">
      {{ props.renderValue }}
    </p>
  </div>
</template>
<script lang="ts" setup>
import { onMounted, reactive, inject } from "vue";
import type { TableColumn, TableRow, OptButton } from "@/utils/baTable"; //表格列行类型

const router = inject("router") as any;
const followProlem = inject("followProlem") as any;
const processPull = inject("processPull") as any;

// BuildAdmin将自动为此组件传递五个Props
interface Props {
  renderValue: any; // 单元格值
  renderRow: TableRow; // 当前行数据
  renderField: TableColumn; // 当前列数据
}

const props = withDefaults(defineProps<Props>(), {});

//料号点击
const goodsNoToggle = () => {
  console.log("料号点击", props.renderRow);
  processPull.single = props.renderRow;
  processPull.showMoreForm = true;
  // router.push({ path: "/admin/BoardProcessPull/detail" });
};

onMounted(() => {
  // console.log("TagVue单元格值", props.renderValue);
});
</script>
<style lang="scss" scoped></style>
